package com.halflife.comeElectricity.basic.address;

import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface AddressGroupRepository {
    int deleteByPrimaryKey(Integer id);

    int insert(AddressGroup record);

    int insertSelective(AddressGroup record);

    AddressGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AddressGroup record);

    int updateByPrimaryKey(AddressGroup record);

    void deleteByMerchantId(Integer merchantId);

    List<AddressGroup> selectByMerchantId(Integer merchantId);

    List<AddressGroup> selectByMerIdAndType(HashMap<String, Object> param);
}